home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / querylib / query_option_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-07  |  1.0 KB  |  41 lines

  1. /*
  2. ### procedure for selecting a helping option ###
  3.  
  4. */
  5.  
  6. #include <stdio.h>
  7. #include <suntool/sunview.h>
  8. #include <suntool/textsw.h>
  9. #include <suntool/panel.h>
  10.  
  11. void query_option_proc(item,value,event)
  12. Panel_item      item;
  13. int             value;
  14. Event          *event;
  15. {
  16.     FILE *fp,*fopen();
  17.     extern Textsw query_textsw;
  18.     extern Textsw_status query_status;
  19.         extern int query_option;
  20.     extern char full_path[],dir_name[],file_name[];
  21.  
  22.         query_option = value;
  23.         sprintf(full_path,"%s/tmp.query",dir_name,file_name);
  24.     fp = fopen(full_path,"w");
  25.     if(query_option==0){
  26.         printf
  27.     }
  28.     else if(query_option==1){
  29.     }
  30.     fclose(fp);
  31.         window_set(query_textsw,
  32.                 TEXTSW_STATUS, &query_status,
  33.                 TEXTSW_FILE,full_path,
  34.                 TEXTSW_FIRST,0,
  35.                 0);
  36.         if(query_status == TEXTSW_STATUS_CANNOT_OPEN_INPUT){
  37.                 sprintf(string,"Help file (%s/%d) does not exist!\n",query_dir,query_option);
  38.                 system_mess_proc(1,string);
  39.         }       
  40. }
  41.